﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace DTO
{
	[DataContract]
	public class Item {
		public const String c_id = "id";
		private Int64 m_id = 0;
		[Key]
		[DataMember]
		public Int64  id { 
			 get {return m_id;} 
			 set { m_id = value; } 
		}

		public const String c_menu_id = "menu_id";
		private Int64 m_menu_id = 0;
		[DataMember]
		public Int64  menu_id { 
			 get {return m_menu_id;} 
			 set { m_menu_id = value; } 
		}

		public const String c_group_id = "group_id";
		private Int64 m_group_id = 0;
		[DataMember]
		public Int64  group_id { 
			 get {return m_group_id;} 
			 set { m_group_id = value; } 
		}

		public const String c_show = "show";
		private Boolean m_show = false;
		[DataMember]
		public Boolean  show { 
			 get {return m_show;} 
			 set { m_show = value; } 
		}

		public const String c_isadd = "isadd";
		private Boolean m_isadd = false;
		[DataMember]
		public Boolean  isadd { 
			 get {return m_isadd;} 
			 set { m_isadd = value; } 
		}

		public const String c_edit = "edit";
		private Boolean m_edit = false;
		[DataMember]
		public Boolean  edit { 
			 get {return m_edit;} 
			 set { m_edit = value; } 
		}

		public const String c_isdelete = "isdelete";
		private Boolean m_isdelete = false;
		[DataMember]
		public Boolean  isdelete { 
			 get {return m_isdelete;} 
			 set { m_isdelete = value; } 
		}

		public const String c_state = "state";
		private Boolean m_state = false;
		[DataMember]
		public Boolean  state { 
			 get {return m_state;} 
			 set { m_state = value; } 
		}

        public const String c_name = "name";
        private String m_name = "";
        [DataMember]
        public String name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        public const String c_title = "title";
        private String m_title = "";
        [DataMember]
        public String title
        {
            get { return m_title; }
            set { m_title = value; }
        }
        public const String c_level1 = "level1";
        private Int32 m_level1 = 0;
        [DataMember]
        public Int32 level1
        {
            get { return m_level1; }
            set { m_level1 = value; }
        }
		public const String b_Item = "Item";

	}

 }
